package com.sieiot.goodknow.base.stable.api;

import java.util.List;

/**
 * 分页数据封装类
 * @author lyh
 * @since 2021-07-27
 */
public class TPageResult<T> {

    /**
     * 分页页码
     */
    private Integer pageNum;
    /**
     * 分页每页数据数量
     */
    private Integer pageSize;
    /**
     * 总共页数
     */
    private Integer totalPage;
    /**
     * 总共数据数目
     */
    private Long total;

    /**
     * 分页列表数据
     */
    private List<T> list;

    ////////////////////////// getter setter ////////////////
    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(Integer totalPage) {
        this.totalPage = totalPage;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }
}
